@(verkefniForm: Form[models.data.Verkefni], coursesSemesters: List[models.general.vKennariHoparOnn], kennitala: String, onnId: Int)
@teacherMain(title = "Nýtt Verkefni") {


    <div class="container">
        <div class="row">
            <div class="span6">


                <ul class="breadcrumb">
                    <li class="active">Búa til verkefni<span class="divider">/</span></li>
                    <li>Velja spurningar<span class="divider">/</span></li>
                    <li >Leggja verkefni fyrir hóp<span class="divider">/</span></li>
                    <li>Lokið<li>
                </ul>

                <h2> Verkefni </h2>

                 @helper.form(action = routes.TeacherController.submitAssignment(), 'class -> "form-horizontal") {
                     <fieldset>
                         <div id="legend" class="">
                             <legend class="">Búa til verkefni</legend>
                         </div>


                         <div class="control-group">
                             <label class="control-label">Heiti verkefnis</label>
                             <div class="controls">
                                 <input type="text" class="input span6" name="heiti">
                             </div>
                         </div>
                         <input type="hidden" value="@{kennitala}" name="kennari_id" />
                         <input type="hidden" value="@onnId" name="onn_id" />


                         <div class="control-group">
                             <label class="control-label">Tegund</label>
                             <div class="controls">
                                 <label class="radio inline">
                                     <input type="radio" name="tegund" value="prof" checked="checked"> Próf
                                 </label>
                                 <label class="radio inline">
                                    <input type="radio" name="tegund" value="verkefni"> Verkefni
                                 </label>
                             </div>
                         </div>


                         <div class="control-group">
                             <label class="control-label"> Áfangi </label>
                             <div class="controls">
                                 <select class="input span6" name="afangi_id">
                                     @for(course <- coursesSemesters){
                                         <option value=@{course.afangi_id}>@{course.namsgrein_afanganr}</option>
                                     }
                                 </select>
                             </div>
                         </div>

                         <div class="control-group">
                             <label class="control-label">Heildarvægi verkefnis (%) </label>
                             <div class="controls">
                                 <input step="0.5" type="number" name="vaegi" id="vaegi" value="0" min="0" max="100" class="span6">
                             </div>
                         </div>


                         <div class="control-group">
                             <div class="form-actions">
                                 <button type="submit" class="btn btn-primary" value="submit">Velja spurningar</button>
                                 <a href="@routes.TeacherController.teacherDashboard()" ><input type="button" class="btn" value="Hætta við" /></a>
                             </div>
                         </div>
                     </fieldset>

            }
            </div>
        </div> <!-- row -->
    </div> <!-- /container -->
}
